package com.kingsoft.miot.bridge.dao;

import java.util.List;
import java.util.Map;

import com.kingsoft.miot.bridge.pojo.hotel.HouseInfo;
import org.apache.ibatis.annotations.Param;

/**
 * 房屋信息Dao
 *
 * @author melody
 */
public interface HouseInfoDao {

    /**
     * 新增room
     *
     * @param roomInfo
     */
    public void insertOne(HouseInfo houseInfo);

    /**
     * 通过house_id 获取houseInfo
     *
     * @param room_info_id
     * @return
     */
    public HouseInfo getByHouseInfoId(int room_info_id);

    /**
     * 通过hotel id 获取House info
     *
     * @param hotel_info_id
     * @return
     */
    public List<HouseInfo> getListByHotelInfoId(int hotel_info_id);

    /**
     * 通过hotel id 和 house id 获取HouseInfo
     *
     * @param argMap
     * @return
     */
    public HouseInfo getByHotelIdAndHouseId(Map<String, Integer> argMap);

    /**
     * 获得所有house info
     *
     * @return
     */
    public List<HouseInfo> findAll();

    /**
     * 通过house num 查询这个house
     *
     * @param house_info_num
     * @return
     */
    public HouseInfo getByHouseInfoNum(int house_info_num);

    /**
     * 查询房间列表(根据房间号等信息)
     *
     * @param condition
     * @return
     */
    List<HouseInfo> findHouseListByHouseNo(Map<String, Object> condition);

    /**
     * 添加房间
     * @param houseInfos
     * @return
     */
    int insertBatchHouse(List<HouseInfo> houseInfos);

    /**
     * 查询某个房间信息详情
     * @param hotelId 酒店Id
     * @param houseId 房间Id
     * @return
     */
    HouseInfo findHouseByHouseId(@Param(value = "hotelId") Integer hotelId, @Param(value = "houseId") Integer houseId);

}
